use actix_web::web;

mod auth;

pub fn config(cfg: &mut web::ServiceConfig) {
    cfg.service(
        web::scope("/auth")
            .route("/register", web::post().to(auth::register))
            .route("/login", web::post().to(auth::login)),
    );
}

//create.rs
pub mod create;
pub mod update;
pub mod list;
pub mod delete;
